<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.11"/>
<title>Kinetis Bootloader: fsl_rtos_abstraction.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
  $(window).load(resizeHeight);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="nxp_logo_small.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Kinetis Bootloader
   &#160;<span id="projectnumber">2.0.0</span>
   </div>
   <div id="projectbrief">Common bootloader for Kinetis devices</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.11 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Introduction</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('fsl__rtos__abstraction_8h_source.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">fsl_rtos_abstraction.h</div>  </div>
</div><!--header-->
<div class="contents">
<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">/*</span></div><div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="comment"> * Copyright (c) 2013, Freescale Semiconductor, Inc.</span></div><div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment"> * All rights reserved.</span></div><div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment"> * Redistribution and use in source and binary forms, with or without modification,</span></div><div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment"> * are permitted provided that the following conditions are met:</span></div><div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="comment"> * o Redistributions of source code must retain the above copyright notice, this list</span></div><div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="comment"> *   of conditions and the following disclaimer.</span></div><div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="comment"> * o Redistributions in binary form must reproduce the above copyright notice, this</span></div><div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="comment"> *   list of conditions and the following disclaimer in the documentation and/or</span></div><div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="comment"> *   other materials provided with the distribution.</span></div><div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="comment"> * o Neither the name of Freescale Semiconductor, Inc. nor the names of its</span></div><div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="comment"> *   contributors may be used to endorse or promote products derived from this</span></div><div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<span class="comment"> *   software without specific prior written permission.</span></div><div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="comment"> * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS &quot;AS IS&quot; AND</span></div><div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;<span class="comment"> * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED</span></div><div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;<span class="comment"> * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE</span></div><div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;<span class="comment"> * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR</span></div><div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;<span class="comment"> * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES</span></div><div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;<span class="comment"> * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;</span></div><div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;<span class="comment"> * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON</span></div><div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;<span class="comment"> * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT</span></div><div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;<span class="comment"> * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS</span></div><div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;<span class="comment"> * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.</span></div><div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;<span class="comment"> */</span></div><div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;<span class="preprocessor">#if !defined(__FSL_RTOS_ABSTRACTION_H__)</span></div><div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;<span class="preprocessor">#define __FSL_RTOS_ABSTRACTION_H__</span></div><div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;</div><div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;<span class="preprocessor">#include &lt;stdint.h&gt;</span></div><div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;<span class="preprocessor">#include &lt;stdbool.h&gt;</span></div><div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;</div><div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;</div><div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;<span class="comment">// Declarations</span></div><div class="line"><a name="l00042"></a><span class="lineno"><a class="line" href="group__rtos__irq__sync.html#gac620802974e82799bde8d7eeadecaea2">   42</a></span>&#160;<span class="comment"></span><span class="keyword">typedef</span> <span class="keyword">enum</span> _osa_status_t</div><div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;{</div><div class="line"><a name="l00044"></a><span class="lineno"><a class="line" href="group__rtos__irq__sync.html#ggac620802974e82799bde8d7eeadecaea2aa4598af8363b288290d945d9853c4b32">   44</a></span>&#160;    <a class="code" href="group__rtos__irq__sync.html#ggac620802974e82799bde8d7eeadecaea2aa4598af8363b288290d945d9853c4b32">kStatus_OSA_Success</a> = 0U, </div><div class="line"><a name="l00045"></a><span class="lineno"><a class="line" href="group__rtos__irq__sync.html#ggac620802974e82799bde8d7eeadecaea2afe784ce9a332a9b671d6b372840c60a1">   45</a></span>&#160;    <a class="code" href="group__rtos__irq__sync.html#ggac620802974e82799bde8d7eeadecaea2afe784ce9a332a9b671d6b372840c60a1">kStatus_OSA_Error</a> = 1U,   </div><div class="line"><a name="l00046"></a><span class="lineno"><a class="line" href="group__rtos__irq__sync.html#ggac620802974e82799bde8d7eeadecaea2a8a3efc503d4b3a9f785d00b6f5a72b53">   46</a></span>&#160;    <a class="code" href="group__rtos__irq__sync.html#ggac620802974e82799bde8d7eeadecaea2a8a3efc503d4b3a9f785d00b6f5a72b53">kStatus_OSA_Timeout</a> = 2U, </div><div class="line"><a name="l00047"></a><span class="lineno"><a class="line" href="group__rtos__irq__sync.html#ggac620802974e82799bde8d7eeadecaea2a5ff8ef02cb571d5d5f92a7e816719a3d">   47</a></span>&#160;    <a class="code" href="group__rtos__irq__sync.html#ggac620802974e82799bde8d7eeadecaea2a5ff8ef02cb571d5d5f92a7e816719a3d">kStatus_OSA_Idle</a> = 3U     </div><div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;} <a class="code" href="group__rtos__irq__sync.html#gac620802974e82799bde8d7eeadecaea2">osa_status_t</a>;</div><div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;</div><div class="line"><a name="l00051"></a><span class="lineno"><a class="line" href="group__rtos__irq__sync.html">   51</a></span>&#160;<span class="keyword">typedef</span> <span class="keyword">struct </span>Semaphore</div><div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;{</div><div class="line"><a name="l00053"></a><span class="lineno"><a class="line" href="group__rtos__irq__sync.html#aa71878320984c51245a4310f6ff44236">   53</a></span>&#160;    <span class="keyword">volatile</span> <span class="keywordtype">bool</span> <a class="code" href="group__rtos__irq__sync.html#aa71878320984c51245a4310f6ff44236">isWaiting</a>;   </div><div class="line"><a name="l00054"></a><span class="lineno"><a class="line" href="group__rtos__irq__sync.html#a1d2f89fdf8829f51ee26417a25143535">   54</a></span>&#160;    <span class="keyword">volatile</span> uint8_t <a class="code" href="group__rtos__irq__sync.html#a1d2f89fdf8829f51ee26417a25143535">semCount</a>; </div><div class="line"><a name="l00055"></a><span class="lineno"><a class="line" href="group__rtos__irq__sync.html#a83aa7dd89e30afbc56dcc3dbe043a044">   55</a></span>&#160;    uint64_t <a class="code" href="group__rtos__irq__sync.html#a83aa7dd89e30afbc56dcc3dbe043a044">tickStart</a>;        </div><div class="line"><a name="l00056"></a><span class="lineno"><a class="line" href="group__rtos__irq__sync.html#ab5627d8d8b095c198e2523c44ca380ac">   56</a></span>&#160;    uint32_t <a class="code" href="group__rtos__irq__sync.html#ab5627d8d8b095c198e2523c44ca380ac">timeout</a>;          </div><div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;} <a class="code" href="group__rtos__irq__sync.html#structsemaphore__t">semaphore_t</a>;</div><div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;</div><div class="line"><a name="l00060"></a><span class="lineno"><a class="line" href="group__rtos__irq__sync.html#gaf19667353d40403b33dfac84ba8a3678">   60</a></span>&#160;<span class="keyword">typedef</span> <span class="keyword">volatile</span> int32_t <a class="code" href="group__rtos__irq__sync.html#gaf19667353d40403b33dfac84ba8a3678">sync_object_t</a>;</div><div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;</div><div class="line"><a name="l00063"></a><span class="lineno"><a class="line" href="group__rtos__irq__sync.html#gacf427a79d36893fa7874beee8271b9fc">   63</a></span>&#160;<span class="keyword">typedef</span> <span class="keyword">volatile</span> uint32_t <a class="code" href="group__rtos__irq__sync.html#gacf427a79d36893fa7874beee8271b9fc">lock_object_t</a>;</div><div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;</div><div class="line"><a name="l00065"></a><span class="lineno"><a class="line" href="group__rtos__irq__sync.html#ga766649329a04f74317020a111afc12a3">   65</a></span>&#160;<span class="keyword">enum</span> <a class="code" href="group__rtos__irq__sync.html#ga766649329a04f74317020a111afc12a3">sync_timeouts</a></div><div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;{</div><div class="line"><a name="l00068"></a><span class="lineno"><a class="line" href="group__rtos__irq__sync.html#gga766649329a04f74317020a111afc12a3acc89da1f516db1180e9b4355a378953b">   68</a></span>&#160;    <a class="code" href="group__rtos__irq__sync.html#gga766649329a04f74317020a111afc12a3acc89da1f516db1180e9b4355a378953b">kSyncWaitForever</a> = 0xffffffffU</div><div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;};</div><div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;</div><div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;<span class="comment">// API</span></div><div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;<span class="comment"></span></div><div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;<span class="preprocessor">#if defined(__cplusplus)</span></div><div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;<span class="keyword">extern</span> <span class="stringliteral">&quot;C&quot;</span> {</div><div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;<span class="preprocessor">#endif</span></div><div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;</div><div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;</div><div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;</div><div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160;<a class="code" href="group__rtos__irq__sync.html#gac620802974e82799bde8d7eeadecaea2">osa_status_t</a> <a class="code" href="group__rtos__irq__sync.html#ga38cbf578e5fe68f6b49d54acf5019ec6">OSA_SemaCreate</a>(<a class="code" href="group__rtos__irq__sync.html#structsemaphore__t">semaphore_t</a> *pSem, uint8_t initValue);</div><div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160;</div><div class="line"><a name="l00140"></a><span class="lineno">  140</span>&#160;<a class="code" href="group__rtos__irq__sync.html#gac620802974e82799bde8d7eeadecaea2">osa_status_t</a> <a class="code" href="group__rtos__irq__sync.html#ga653fc3e87d91a841348be7b0a0166422">OSA_SemaWait</a>(<a class="code" href="group__rtos__irq__sync.html#structsemaphore__t">semaphore_t</a> *pSem, uint32_t timeout);</div><div class="line"><a name="l00141"></a><span class="lineno">  141</span>&#160;</div><div class="line"><a name="l00164"></a><span class="lineno">  164</span>&#160;<a class="code" href="group__rtos__irq__sync.html#gac620802974e82799bde8d7eeadecaea2">osa_status_t</a> <a class="code" href="group__rtos__irq__sync.html#gaa5034a9787f489d989f22a06e509a192">OSA_SemaPost</a>(<a class="code" href="group__rtos__irq__sync.html#structsemaphore__t">semaphore_t</a> *pSem);</div><div class="line"><a name="l00165"></a><span class="lineno">  165</span>&#160;</div><div class="line"><a name="l00185"></a><span class="lineno">  185</span>&#160;<a class="code" href="group__rtos__irq__sync.html#gac620802974e82799bde8d7eeadecaea2">osa_status_t</a> <a class="code" href="group__rtos__irq__sync.html#ga3883e9e4302574d34a937c6d6eef4a35">OSA_SemaDestroy</a>(<a class="code" href="group__rtos__irq__sync.html#structsemaphore__t">semaphore_t</a> *pSem);</div><div class="line"><a name="l00186"></a><span class="lineno">  186</span>&#160;</div><div class="line"><a name="l00192"></a><span class="lineno">  192</span>&#160;<span class="keywordtype">void</span> <a class="code" href="group__rtos__irq__sync.html#ga80ec77b248ae8f3d564727e0cb78eaee">OSA_TimeDelay</a>(uint32_t delay);</div><div class="line"><a name="l00193"></a><span class="lineno">  193</span>&#160;</div><div class="line"><a name="l00195"></a><span class="lineno">  195</span>&#160;</div><div class="line"><a name="l00197"></a><span class="lineno">  197</span>&#160;</div><div class="line"><a name="l00199"></a><span class="lineno">  199</span>&#160;</div><div class="line"><a name="l00200"></a><span class="lineno">  200</span>&#160;</div><div class="line"><a name="l00208"></a><span class="lineno">  208</span>&#160;<span class="keywordtype">void</span> sync_init(<a class="code" href="group__rtos__irq__sync.html#gaf19667353d40403b33dfac84ba8a3678">sync_object_t</a> *obj, <span class="keywordtype">bool</span> state);</div><div class="line"><a name="l00209"></a><span class="lineno">  209</span>&#160;</div><div class="line"><a name="l00222"></a><span class="lineno">  222</span>&#160;<span class="keywordtype">bool</span> sync_wait(<a class="code" href="group__rtos__irq__sync.html#gaf19667353d40403b33dfac84ba8a3678">sync_object_t</a> *obj, uint32_t timeout);</div><div class="line"><a name="l00223"></a><span class="lineno">  223</span>&#160;</div><div class="line"><a name="l00229"></a><span class="lineno">  229</span>&#160;<span class="keywordtype">void</span> sync_signal(<a class="code" href="group__rtos__irq__sync.html#gaf19667353d40403b33dfac84ba8a3678">sync_object_t</a> *obj);</div><div class="line"><a name="l00230"></a><span class="lineno">  230</span>&#160;</div><div class="line"><a name="l00236"></a><span class="lineno">  236</span>&#160;<span class="keywordtype">void</span> sync_reset(<a class="code" href="group__rtos__irq__sync.html#gaf19667353d40403b33dfac84ba8a3678">sync_object_t</a> *obj);</div><div class="line"><a name="l00237"></a><span class="lineno">  237</span>&#160;</div><div class="line"><a name="l00239"></a><span class="lineno">  239</span>&#160;</div><div class="line"><a name="l00242"></a><span class="lineno">  242</span>&#160;</div><div class="line"><a name="l00244"></a><span class="lineno">  244</span>&#160;</div><div class="line"><a name="l00245"></a><span class="lineno">  245</span>&#160;</div><div class="line"><a name="l00247"></a><span class="lineno">  247</span>&#160;<span class="keywordtype">void</span> <a class="code" href="group__irq__lock.html#gaae172f2d8f01b46f3f695db836710b42">lock_init</a>(<span class="keywordtype">void</span>);</div><div class="line"><a name="l00248"></a><span class="lineno">  248</span>&#160;</div><div class="line"><a name="l00250"></a><span class="lineno">  250</span>&#160;<span class="keywordtype">void</span> <a class="code" href="group__irq__lock.html#ga7f6e688a9ee4dbe53991685e5b0b6cf7">lock_acquire</a>(<span class="keywordtype">void</span>);</div><div class="line"><a name="l00251"></a><span class="lineno">  251</span>&#160;</div><div class="line"><a name="l00253"></a><span class="lineno">  253</span>&#160;<span class="keywordtype">void</span> <a class="code" href="group__irq__lock.html#ga5bddc9ffc336cc35e97b6628aa3bae7a">lock_release</a>(<span class="keywordtype">void</span>);</div><div class="line"><a name="l00254"></a><span class="lineno">  254</span>&#160;</div><div class="line"><a name="l00256"></a><span class="lineno">  256</span>&#160;</div><div class="line"><a name="l00258"></a><span class="lineno">  258</span>&#160;</div><div class="line"><a name="l00259"></a><span class="lineno">  259</span>&#160;<span class="preprocessor">#if defined(__cplusplus)</span></div><div class="line"><a name="l00260"></a><span class="lineno">  260</span>&#160;}</div><div class="line"><a name="l00261"></a><span class="lineno">  261</span>&#160;<span class="preprocessor">#endif</span></div><div class="line"><a name="l00262"></a><span class="lineno">  262</span>&#160;</div><div class="line"><a name="l00263"></a><span class="lineno">  263</span>&#160;<span class="preprocessor">#endif // __FSL_RTOS_ABSTRACTION_H__</span></div><div class="line"><a name="l00264"></a><span class="lineno">  264</span>&#160;<span class="comment">// EOF</span></div><div class="ttc" id="group__rtos__irq__sync_html_ggac620802974e82799bde8d7eeadecaea2a5ff8ef02cb571d5d5f92a7e816719a3d"><div class="ttname"><a href="group__rtos__irq__sync.html#ggac620802974e82799bde8d7eeadecaea2a5ff8ef02cb571d5d5f92a7e816719a3d">kStatus_OSA_Idle</a></div><div class="ttdef"><b>Definition:</b> fsl_rtos_abstraction.h:47</div></div>
<div class="ttc" id="group__rtos__irq__sync_html_ga80ec77b248ae8f3d564727e0cb78eaee"><div class="ttname"><a href="group__rtos__irq__sync.html#ga80ec77b248ae8f3d564727e0cb78eaee">OSA_TimeDelay</a></div><div class="ttdeci">void OSA_TimeDelay(uint32_t delay)</div><div class="ttdoc">Delays execution for a number of milliseconds. </div><div class="ttdef"><b>Definition:</b> fsl_rtos_abstraction.c:199</div></div>
<div class="ttc" id="group__rtos__irq__sync_html_gga766649329a04f74317020a111afc12a3acc89da1f516db1180e9b4355a378953b"><div class="ttname"><a href="group__rtos__irq__sync.html#gga766649329a04f74317020a111afc12a3acc89da1f516db1180e9b4355a378953b">kSyncWaitForever</a></div><div class="ttdoc">Constant to pass for the sync_wait() timeout in order to wait indefinitely. </div><div class="ttdef"><b>Definition:</b> fsl_rtos_abstraction.h:68</div></div>
<div class="ttc" id="group__rtos__irq__sync_html_gaf19667353d40403b33dfac84ba8a3678"><div class="ttname"><a href="group__rtos__irq__sync.html#gaf19667353d40403b33dfac84ba8a3678">sync_object_t</a></div><div class="ttdeci">volatile int32_t sync_object_t</div><div class="ttdoc">Type for an interrupt synchronization object. </div><div class="ttdef"><b>Definition:</b> fsl_rtos_abstraction.h:60</div></div>
<div class="ttc" id="group__rtos__irq__sync_html_a1d2f89fdf8829f51ee26417a25143535"><div class="ttname"><a href="group__rtos__irq__sync.html#a1d2f89fdf8829f51ee26417a25143535">semaphore_t::semCount</a></div><div class="ttdeci">volatile uint8_t semCount</div><div class="ttdef"><b>Definition:</b> fsl_rtos_abstraction.h:54</div></div>
<div class="ttc" id="group__rtos__irq__sync_html_ggac620802974e82799bde8d7eeadecaea2aa4598af8363b288290d945d9853c4b32"><div class="ttname"><a href="group__rtos__irq__sync.html#ggac620802974e82799bde8d7eeadecaea2aa4598af8363b288290d945d9853c4b32">kStatus_OSA_Success</a></div><div class="ttdef"><b>Definition:</b> fsl_rtos_abstraction.h:44</div></div>
<div class="ttc" id="group__rtos__irq__sync_html_structsemaphore__t"><div class="ttname"><a href="group__rtos__irq__sync.html#structsemaphore__t">semaphore_t</a></div><div class="ttdef"><b>Definition:</b> fsl_rtos_abstraction.h:51</div></div>
<div class="ttc" id="group__rtos__irq__sync_html_ggac620802974e82799bde8d7eeadecaea2a8a3efc503d4b3a9f785d00b6f5a72b53"><div class="ttname"><a href="group__rtos__irq__sync.html#ggac620802974e82799bde8d7eeadecaea2a8a3efc503d4b3a9f785d00b6f5a72b53">kStatus_OSA_Timeout</a></div><div class="ttdef"><b>Definition:</b> fsl_rtos_abstraction.h:46</div></div>
<div class="ttc" id="group__rtos__irq__sync_html_ga766649329a04f74317020a111afc12a3"><div class="ttname"><a href="group__rtos__irq__sync.html#ga766649329a04f74317020a111afc12a3">sync_timeouts</a></div><div class="ttdeci">sync_timeouts</div><div class="ttdef"><b>Definition:</b> fsl_rtos_abstraction.h:65</div></div>
<div class="ttc" id="group__rtos__irq__sync_html_aa71878320984c51245a4310f6ff44236"><div class="ttname"><a href="group__rtos__irq__sync.html#aa71878320984c51245a4310f6ff44236">semaphore_t::isWaiting</a></div><div class="ttdeci">volatile bool isWaiting</div><div class="ttdef"><b>Definition:</b> fsl_rtos_abstraction.h:53</div></div>
<div class="ttc" id="group__rtos__irq__sync_html_ggac620802974e82799bde8d7eeadecaea2afe784ce9a332a9b671d6b372840c60a1"><div class="ttname"><a href="group__rtos__irq__sync.html#ggac620802974e82799bde8d7eeadecaea2afe784ce9a332a9b671d6b372840c60a1">kStatus_OSA_Error</a></div><div class="ttdef"><b>Definition:</b> fsl_rtos_abstraction.h:45</div></div>
<div class="ttc" id="group__rtos__irq__sync_html_gac620802974e82799bde8d7eeadecaea2"><div class="ttname"><a href="group__rtos__irq__sync.html#gac620802974e82799bde8d7eeadecaea2">osa_status_t</a></div><div class="ttdeci">osa_status_t</div><div class="ttdef"><b>Definition:</b> fsl_rtos_abstraction.h:42</div></div>
<div class="ttc" id="group__rtos__irq__sync_html_ga3883e9e4302574d34a937c6d6eef4a35"><div class="ttname"><a href="group__rtos__irq__sync.html#ga3883e9e4302574d34a937c6d6eef4a35">OSA_SemaDestroy</a></div><div class="ttdeci">osa_status_t OSA_SemaDestroy(semaphore_t *pSem)</div><div class="ttdoc">Destroys a previously created semaphore. </div><div class="ttdef"><b>Definition:</b> fsl_rtos_abstraction.c:186</div></div>
<div class="ttc" id="group__rtos__irq__sync_html_a83aa7dd89e30afbc56dcc3dbe043a044"><div class="ttname"><a href="group__rtos__irq__sync.html#a83aa7dd89e30afbc56dcc3dbe043a044">semaphore_t::tickStart</a></div><div class="ttdeci">uint64_t tickStart</div><div class="ttdef"><b>Definition:</b> fsl_rtos_abstraction.h:55</div></div>
<div class="ttc" id="group__rtos__irq__sync_html_ga653fc3e87d91a841348be7b0a0166422"><div class="ttname"><a href="group__rtos__irq__sync.html#ga653fc3e87d91a841348be7b0a0166422">OSA_SemaWait</a></div><div class="ttdeci">osa_status_t OSA_SemaWait(semaphore_t *pSem, uint32_t timeout)</div><div class="ttdoc">Pending a semaphore with timeout. </div><div class="ttdef"><b>Definition:</b> fsl_rtos_abstraction.c:106</div></div>
<div class="ttc" id="group__irq__lock_html_gaae172f2d8f01b46f3f695db836710b42"><div class="ttname"><a href="group__irq__lock.html#gaae172f2d8f01b46f3f695db836710b42">lock_init</a></div><div class="ttdeci">void lock_init(void)</div><div class="ttdoc">Initialize the lock object. </div><div class="ttdef"><b>Definition:</b> fsl_rtos_abstraction.c:241</div></div>
<div class="ttc" id="group__rtos__irq__sync_html_ga38cbf578e5fe68f6b49d54acf5019ec6"><div class="ttname"><a href="group__rtos__irq__sync.html#ga38cbf578e5fe68f6b49d54acf5019ec6">OSA_SemaCreate</a></div><div class="ttdeci">osa_status_t OSA_SemaCreate(semaphore_t *pSem, uint8_t initValue)</div><div class="ttdoc">Creates a semaphore with a given value. </div><div class="ttdef"><b>Definition:</b> fsl_rtos_abstraction.c:74</div></div>
<div class="ttc" id="group__irq__lock_html_ga5bddc9ffc336cc35e97b6628aa3bae7a"><div class="ttname"><a href="group__irq__lock.html#ga5bddc9ffc336cc35e97b6628aa3bae7a">lock_release</a></div><div class="ttdeci">void lock_release(void)</div><div class="ttdoc">Restore previous state. </div><div class="ttdef"><b>Definition:</b> fsl_rtos_abstraction.c:255</div></div>
<div class="ttc" id="group__irq__lock_html_ga7f6e688a9ee4dbe53991685e5b0b6cf7"><div class="ttname"><a href="group__irq__lock.html#ga7f6e688a9ee4dbe53991685e5b0b6cf7">lock_acquire</a></div><div class="ttdeci">void lock_acquire(void)</div><div class="ttdoc">Disable global irq and store previous state. </div><div class="ttdef"><b>Definition:</b> fsl_rtos_abstraction.c:248</div></div>
<div class="ttc" id="group__rtos__irq__sync_html_gaa5034a9787f489d989f22a06e509a192"><div class="ttname"><a href="group__rtos__irq__sync.html#gaa5034a9787f489d989f22a06e509a192">OSA_SemaPost</a></div><div class="ttdeci">osa_status_t OSA_SemaPost(semaphore_t *pSem)</div><div class="ttdoc">Signals for someone waiting on the semaphore to wake up. </div><div class="ttdef"><b>Definition:</b> fsl_rtos_abstraction.c:163</div></div>
<div class="ttc" id="group__rtos__irq__sync_html_ab5627d8d8b095c198e2523c44ca380ac"><div class="ttname"><a href="group__rtos__irq__sync.html#ab5627d8d8b095c198e2523c44ca380ac">semaphore_t::timeout</a></div><div class="ttdeci">uint32_t timeout</div><div class="ttdef"><b>Definition:</b> fsl_rtos_abstraction.h:56</div></div>
<div class="ttc" id="group__rtos__irq__sync_html_gacf427a79d36893fa7874beee8271b9fc"><div class="ttname"><a href="group__rtos__irq__sync.html#gacf427a79d36893fa7874beee8271b9fc">lock_object_t</a></div><div class="ttdeci">volatile uint32_t lock_object_t</div><div class="ttdoc">Type for an interrupt lock object. </div><div class="ttdef"><b>Definition:</b> fsl_rtos_abstraction.h:63</div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_7b5d38f1875f1b693f62ca6a108a1129.html">utilities</a></li><li class="navelem"><b>fsl_rtos_abstraction.h</b></li>
    <li class="footer">Generated on Mon Mar 7 2016 16:48:23 for Kinetis Bootloader by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.11 </li>
  </ul>
</div>
</body>
</html>
